package com.pzb.market.service.impl;

import com.pzb.market.domain.MkDiscount;
import com.pzb.market.mapper.MkDiscountMapper;
import com.pzb.market.service.IMkDiscountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 店铺活动Service业务层处理
 * 
 * @author pzb
 * @date 2021-10-12
 */
@Service
public class MkDiscountServiceImpl implements IMkDiscountService 
{
    @Autowired
    private MkDiscountMapper mkDiscountMapper;

    /**
     * 查询店铺活动
     * 
     * @param id 店铺活动主键
     * @return 店铺活动
     */
    @Override
    public MkDiscount selectMkDiscountById(Long id)
    {
        MkDiscount mkDiscount = mkDiscountMapper.selectMkDiscountById(id);
        return mkDiscount;
    }

    @Override
    public List<MkDiscount> selectProgressDiscountList(String extAppid) {
        return mkDiscountMapper.selectProgressDiscountList(extAppid);
    }


}
